package com.ai.service.made.impl;

import com.ai.entity.made.Cameras;
import com.ai.entity.made.page.TCameraPage;
import com.ai.mapper.made.CamerasMapper;
import com.ai.service.made.ICamerasService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author chen
 * @since 2023-03-28 11:12:30
 */
@Service
public class CamerasServiceImpl extends ServiceImpl<CamerasMapper, Cameras> implements ICamerasService {

    @Override
    public IPage selectByPage(TCameraPage page) {
        QueryWrapper<Cameras> queryWrapper = new QueryWrapper<>();
        queryWrapper = page.getQuery(queryWrapper);
        IPage<Cameras> camerasIPage = baseMapper.selectPage(page, queryWrapper);
        return camerasIPage;
    }
}
